package com.yuyou.fn.platform.service;

import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.platform.entity.SysDataPermission;
import com.yuyou.fn.platform.permission.DataPermission;

import java.util.List;

/**
 *
 * SysDataPermission 表数据服务层接口
 *
 */
public interface ISysDataPermissionService extends ISuperService<SysDataPermission,Long> {

    void saveDataPermission(Long userId, List<SysDataPermission> sysDataPermissionList );

    List<SysDataPermission> findDataPermission(Long userId);

    DataPermission findDataPermissionForUser(Long userId);

    void clearCache();

    void deleteByResourceTypes(List<Integer> resourceTypes);

}